package com.word.android.sdk.utils;

import android.content.Context;
import android.content.SharedPreferences;

import com.word.android.sdk.WordBusiness;
import com.word.android.sdk.Constant;

public class WordSPUtils {

    public static SharedPreferences getSharePrefs() {
        return WordBusiness.context.getSharedPreferences(Constant.COMMON_SHARE, Context.MODE_PRIVATE);
    }

    public static void putString(String key, String value) {
        getSharePrefs().edit().putString(key, value).commit();
    }

    public static String getString(String key, String defaultValue) {
        return getSharePrefs().getString(key, defaultValue);
    }

}
